package com.chaodev.base.model.wenjuan;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/5/23 15:43
 **/
@ApiModel("答案")
public class Answer implements Serializable{
    private static final long serialVersionUID = -573922127409473365L;
    @ApiModelProperty(value = "选项编码")
    private Integer id;

    @ApiModelProperty(value = "问题编码")
    private Integer questionId;

    @ApiModelProperty(value = "选项内容")
    private String answerName;

    @ApiModelProperty(value = "状态：1 有效 0 失效")
    private Integer state;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "区号")
    private String areaCode;

    @ApiModelProperty(value = "单选题/多选： 1 正确答案 0 错误答案；判断题：1 正确，2 错误；填空题/简答：参考答案")
    private String answer;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }
    public String getAnswerName() {
        return answerName;
    }

    public void setAnswerName(String answerName) {
        this.answerName = answerName;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }
    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    @Override
    public String toString() {
        return "TAnswer{" +
                "id=" + id +
                ", questionId=" + questionId +
                ", answerName=" + answerName +
                ", state=" + state +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", areaCode=" + areaCode +
                ", answer=" + answer +
                "}";
    }
}
